/*
package org.itboys.weixin.controller.session;

import org.itboys.commons.CommonConstants;
import org.itboys.commons.dto.ResultPageDOHelper;
import org.itboys.commons.utils.ajax.AjaxUtils;
import org.itboys.framework.spring.controller.BaseController;
import org.itboys.weixin.service.member.YefuWeixinMemberService;
import org.itboys.weixin.tools.WeixinSendUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

*/
/**
 * 作者：zzq
 * 时间：2017年5月23日
 * 描述：野夫摄影__微信端__session__controller
 *//*

@Controller
@RequestMapping("/yefu/weixin/session")
public class MdlWeixinSessionController extends BaseController{
    @Autowired
    private YefuWeixinMemberService memberService;

    */
/**
     * 将用户信息保存至session中
     * @param request
     * @param response
     * @param memberId
     *//*

   @RequestMapping("/setSession")
    public void setSession(HttpServletRequest request,
                           HttpServletResponse response,
                           @RequestParam(value="memberId",required=true)Long memberId){
        memberService.insertMemberToSession(request, memberId, null);
        AjaxUtils.renderJsonporJson(response, null,
                ResultPageDOHelper.getMsgCodeResultDO(CommonConstants.SUCCESS_CODE, CommonConstants.SUCCESS));
    }
    */
/**
     * 将用户信息保存至session中
     * @param request
     * @param response
     * @param memberId
     *//*

    @RequestMapping("/clearSession")
    public void clearSession(HttpServletRequest request,
                           HttpServletResponse response,
                           @RequestParam(value="memberId",required=true)Long memberId){
        memberService.clearMemberToSession(request, memberId);
        AjaxUtils.renderJsonporJson(response, null,
                ResultPageDOHelper.getMsgCodeResultDO(CommonConstants.SUCCESS_CODE, CommonConstants.SUCCESS));
    }
    */
/**
     * 将用户信息保存至session中
     * @param request
     * @param response
     * @param memberId
     *//*

    @RequestMapping("/sendMessage")
    public void sendMessage(HttpServletRequest request,
                             HttpServletResponse response){
        WeixinSendUtils.sendMessage("wx939c8d520de49815","d24bc48a8924906f99bb643030ddeee1","ohhe1wQjtYultqzETsw7L8KFiAkI","测试消息发送");
        AjaxUtils.renderJsonporJson(response, null,
                ResultPageDOHelper.getMsgCodeResultDO(CommonConstants.SUCCESS_CODE, CommonConstants.SUCCESS));
    }
}
*/
